package com.bruce.springcloud.provider.payment.service.impl;

import com.bruce.springcloud.common.Payment;
import com.bruce.springcloud.provider.payment.mapper.PaymentMapper;
import com.bruce.springcloud.provider.payment.service.PaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Slf4j
@Transactional
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentMapper paymentMapper ;
    @Override
    public Payment findById(Long id) {
        return paymentMapper.findById(id);
    }
}
